//
//  AppDelegate.m
//  sqlTools
//
//  Created by iMac on 16/11/1.
//  Copyright © 2016年 com.iszt.dev.ios. All rights reserved.
//

#import "AppDelegate.h"
#import "MainPageViewController.h"

@interface AppDelegate ()

@property (weak) IBOutlet NSWindow *window;
@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
    // 1. Create the master View Controller
    MainPageViewController *masterViewController = [[MainPageViewController alloc] initWithNibName:@"MainPageViewController" bundle:nil];
    
    // 2. Add the view controller to the Window's content view
    [self.window.contentView addSubview:masterViewController.view];
    masterViewController.view.frame = ((NSView*)self.window.contentView).bounds;
}


- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}


@end
